package org.six11.ss.client;

import org.six11.ss.shared.Message;
import org.six11.util.adt.MultiState;

/**
 * 
 *
 * @author Gabe Johnson <johnsogg@cmu.edu>
 */
public class ChatMessageHandler extends AWTMessageHandler {

  /**
   * @param state
   */
  public ChatMessageHandler(MultiState state) {
    super(state);
  }

  /**
   * 
   */
  @Override
  public void handleAWT(Message msg) {
    String from = msg.getParam("from");
    String content = msg.getParam("content");
    // getTextConsole().append(COLOR_CHAT_FROM, from + ": ");
    // getTextConsole().append(COLOR_CHAT_CONTENT, content + "\n");
    getConsole().addChat(from, content);
  }

}
